import request from '@/utils/request'

// 获取订单列表
export const getOrderList = (data) => {
  return request({
    url: '/order/list',
    method: 'get',
    params:data
  })
}



// 获取订单详情
export const getOrderDetail = (data) => {
  return request({
    url: '/order/orderInfo',
    method: 'get',
    params:data
  })
}

// 获取配置
export const getWxConfigInfo = (data) => {
  return request({
    url: '/common/getConfigInfo',
    method: 'get',
    params:data
  })
}


// 订单处理
export const dealOrder = (data) => {
  return request({
    url: '/order/dealOrderInfo',
    method: 'put',
    data:data
  })
}

// 发货处理
export const sendOut = (data) => {
  return request({
    url: '/order/sendOut',
    method: 'put',
    data:data
  })
}
